@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './headerbar.scss';

body {
  position: relative;
  width: 100vw; /* 视口宽度 */
  height: 100vh;
  overflow: hidden !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  background: linear-gradient(
                  135deg,
                  #0a1a2a 0%,
                  #0a2a3a 30%,
                  #003350 60%,
                  #002240 100%
  );
  color: white;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

body::before {
  z-index: -1;
  content: "";
  position: fixed;
  width: 100vw; /* 视口宽度 */
  height: 100VH;
  background: repeating-linear-gradient(
                  45deg,
                  rgba(0, 131, 255, 0.03) 0px,
                  rgba(0, 131, 255, 0.03) 2px,
                  transparent 2px,
                  transparent 10px
  );
  background-size: 20px 20px; /* 关键修改：匹配渐变间隔 */
  animation: gridMove 40s linear infinite;
  //transform: translate(-25%, -25%);
}

body::after {
  z-index: -1;
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw; /* 视口宽度 */
  height: 100VH;
  background: radial-gradient(
                  circle at 50% 50%,
                  rgba(0, 100, 200, 0.1) 0%,
                  transparent 60%
  );
  background-size: 400% 400%; /* 扩大渐变尺寸 */
  animation: pulse 8s ease-in-out infinite;
}

/* 允许内容滚动（例如通过鼠标滚轮或触控板） */
html {
  scroll-behavior: smooth !important; /* 可选：平滑滚动 */
  overflow: auto !important; /* 允许滚动 */
}

/* 隐藏所有滚动条（浏览器私有属性） */
body::-webkit-scrollbar {
  display: none !important;
}

@keyframes gridMove {
  0% {
    ackground-position: 0 0;

  }
  100% {
    background-position: 20px 20px; /* 匹配背景尺寸 */
  }
}

@keyframes pulse {
  0% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
  100% {
    opacity: 0.1;
  }
}

/* 添加动态数据流效果 */
.data-stream {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(
                  to bottom,
                  transparent,
                  rgba(0, 255, 255, 0.6),
                  transparent
  );
  animation: stream 3s linear infinite;
  opacity: 0.5;
}

@keyframes stream {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}



label {
  font-weight: 700;
}

html {
  height: 100%;
  box-sizing: border-box;
}

#app {
  height: 100%;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

a:focus,
a:active {
  outline: none;
}

a,
a:focus,
a:hover {
  cursor: pointer;
  color: inherit;
  text-decoration: none;
}

div:focus {
  outline: none;
}

.clearfix {
  &:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
}

// main-container global css
.app-container {
  padding: 20px;
}

